package com.tensquare.openfeign.client;

import com.ruoyi.common.core.web.domain.AjaxResult;
import com.tensquare.openfeign.client.impl.GatheringClientImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

// import org.springframework.cloud.loadbalancer.annotation.LoadBalancerClient;

/**
 * Created by WF on 2021/8/31 14:42
 */
@FeignClient(value = "tensquare-gathering", fallback = GatheringClientImpl.class)
public interface GatheringClient {

    @GetMapping("/gathering/findAll")
    public AjaxResult findAll();

    @GetMapping("/gathering/findId/{id}")
    public AjaxResult findById2(@PathVariable("id") String id);

    // http://localhost:9104/gathering/findAll
    // HttpClient
}
